package com.it.mapper;

import com.it.pojo.MenuRole;
import com.it.pojo.MenuRoleExample;
import java.util.List;

import com.it.service.MenuRoleService;
import org.apache.ibatis.annotations.Param;

public interface MenuRoleMapper {
    long countByExample(MenuRoleExample example);

    int deleteByExample(MenuRoleExample example);

    int deleteByPrimaryKey(String menuRoleId);

    int insert(MenuRole record);

    int insertSelective(MenuRole record);

    List<MenuRole> selectByExample(MenuRoleExample example);

    MenuRole selectByPrimaryKey(String menuRoleId);

    int updateByExampleSelective(@Param("record") MenuRole record, @Param("example") MenuRoleExample example);

    int updateByExample(@Param("record") MenuRole record, @Param("example") MenuRoleExample example);

    int updateByPrimaryKeySelective(MenuRole record);

    int updateByPrimaryKey(MenuRole record);


    /*根据menuId和roleId查询MenuRole*/
    MenuRole findByMidAndRid(String menuId,String roleId);

    /*添加角色和菜单的关系*/
    int addMenuRole(String menuId,String roleId);

}